package com.sise.controller;

import com.sise.bean.CodeMsg;
import com.sise.service.IndexService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zj
 */
@RestController
@RequestMapping("/sise/index")
public class IndexController {

    @Resource
    private IndexService indexService;

    @RequestMapping("/init")
    public CodeMsg init() {
        return indexService.init();
    }

    @RequestMapping("/test")
    public CodeMsg test() {
        return new CodeMsg().setCode(200).setMsg("成功");
    }
}
